# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit kde

KDEAPPS="47371"

DESCRIPTION="3D LEGO® modeling software for KDE"
HOMEPAGE="http://www.kde-apps.org/content/show.php?content=${KDEAPPS}"
SRC_URI="http://www.kde-apps.org/content/files/${KDEAPPS}-${P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86-fbsd"
IUSE=""

S="${WORKDIR}/${PN}.kdevelop"

RDEPEND="app-misc/ldraw-parts"

need-kde 3.2

pkg_setup() {
	if ! built_with_use =x11-libs/qt-3* opengl; then
		eerror "To support Video4Linux webcams in this package is required to have"
		eerror "=x11-libs/qt-3* compiled with OpenGL support."
		eerror "Please reemerge =x11-libs/qt-3* with USE=\"opengl\"."
		die "Please reemerge =x11-libs/qt-3* with USE=\"opengl\"."
	fi
}
